#ifndef GRAPHICS_VERTEXBUFFER_H
#define GRAPHICS_VERTEXBUFFER_H
#include <core/core.h>


class QGLShaderProgram;

namespace yam3d
{
namespace graphics
{

    class VertexArray;

    class VertexBuffer
    {
    public:
        VertexBuffer();
        ~VertexBuffer();

        void addVertexArray( const char* const name, VertexArray* va );

        void setVertexArrays(QGLShaderProgram* program);
    private:
        typedef core::hash<const char*,VertexArray*> HashType;
        HashType m_vertexArrays;

        VertexBuffer(const VertexBuffer&);
        VertexBuffer& operator=(const VertexBuffer&);
    };
}
}

#endif // GRAPHICS_VERTEXBUFFER_H
